package com.erp.erp_mask.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.erp.erp_mask.mapper.TPermissionsMapper;
import com.erp.erp_mask.pojo.TRoles;
import com.erp.erp_mask.service.TRolesService;
import com.erp.erp_mask.mapper.TRolesMapper;
import com.erp.erp_mask.vo.TreeData;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author yang
 * @description 针对表【t_roles】的数据库操作Service实现
 * @createDate 2024-05-08 21:27:36
 */
@Service
public class TRolesServiceImpl extends ServiceImpl<TRolesMapper, TRoles>
        implements TRolesService {
    @Resource
    private TRolesMapper tRolesMapper;

    @Override
    public Page<TRoles> searchRoles(String name, Integer state,Long pageNo,Long pageSize) {
        return tRolesMapper.searchrole(name,state,new Page<TRoles>(pageNo,pageSize));
    }
}




